Skip to content

Conversation

@c-dilks
Copy link
Member

@c-dilks c-dilks commented Oct 9, 2025

This PR increases the spotbugs rank, where higher rank means less "important" bug. Our current rank is 3, and I was able to get us up to rank 7. Ultimately this PR will serve to tighten our static analysis testing for future code, steering us away from bug-prone patterns.

For ranks 7 and below, I fixed the ones I could, and suppressed the ones that did not seem worth the effort. Some unused methods have been deleted.

At rank 8, the number of bug-prone detections skyrockets. I started trying to fix them, but ended up doing much more suppressing (i.e., telling spotbugs to ignore certain bugs) than actual fixes; eventually I gave up, since many of them did not seem too important. I left my rank 8 suppressions commented out in the spotbugs configuration file, in case anyone wants to continue this effort.

@c-dilks c-dilks changed the title test: increase spotbugs rank fix: several bug-prone behaviors identified by higher spotbugs ranks Oct 16, 2025
@c-dilks c-dilks force-pushed the entomology branch 3 times, most recently from 384bbe9 to 3b458ee Compare October 23, 2025 20:32
@c-dilks c-dilks marked this pull request as ready for review October 30, 2025 16:45
@c-dilks c-dilks requested a review from heddle as a code owner October 30, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClasUtilsFile.getFileList(String,String,String) passes null for non-null parameter of getFileList(String)

2 participants